package top.songxs.gmall.product.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import top.songxs.gmall.product.service.BloomFilterService;


@Component
public class BloomFilterTask {
    @Autowired
    private BloomFilterService bloomFilterService;

    @Scheduled(cron = "0 0 0/2 * * ?")
    public void resetBloomFilterTask() {
        bloomFilterService.resetBloomFilter();
    }
}
